package com.muyu.user.domain.model;

import com.muyu.user.domain.SysUserTag;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户标签分页查询返回模型
 *
 * @author liuguoqiang
 * @date 2025-09-14
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户标签分页查询返回模型")
public class SysUserTagPageQueryModel {

    /**
     * 标签ID
     */
    @Schema(name = "tagId", title = "标签ID", description = "标签ID" )
    private Long tagId;

    /**
     * 标签名称
     */
    @Schema(name = "tagName", title = "标签名称", description = "标签名称" , required = true)
    private String tagName;

    /**
     * 信息构造器
     */
    public static SysUserTagPageQueryModel infoBuild(SysUserTag sysUserTag){
        return SysUserTagPageQueryModel.builder()
            .tagId(sysUserTag.getTagId())
            .tagName(sysUserTag.getTagName())
            .build();
    }

}
